[IA64] add VGCF_online flag for XEN_DOMCTL_setvcpucontext to make vcpu online.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Tue, 10 Jun 2008 06:54:47 +0000 (15:54 +0900)
committerIsaku Yamahata <yamahata@valinux.co.jp>
Tue, 10 Jun 2008 06:54:47 +0000 (15:54 +0900)
commit2b0d50e685d96c220259b3fe15493e94248fdc93
tree3912e7d4560fbfbb913e94700d4ee20b7146ed79
parent9e2bd82a72d79de0fc2abc457b8500e7264c2e46
[IA64] add VGCF_online flag for XEN_DOMCTL_setvcpucontext to make vcpu online.

Extend the XEN_DOMCTL_setvcpucontext hypercall with VGCF_online
to make vcpu online.
This extension is necessary for save/restore support of pv_ops linux guest.
Currently Linux kernel makes vcpus offline except a boot processor
(vcpu = 0) when saving so that only vcpu = 0 is made online by the tools
stack when restoring. Then Linux kernel itself makes other vcpus up.
On the other hand, pv_ops linux guest doesn't make vcpus offline.
It uses stop_machine_run() keeping all vcpus online.
Thus all of vcpus context must be saved/restored and all vcpus needs to be
made online by the tools stack. So there needs a way to make vcpu online.
Add VGCF_online flag to the XEN_DOMCTL_setvcpucontext hypercall
following the x86 way.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/domain.c
xen/include/public/arch-ia64.h